package xcmg.device.dao.entity;

import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

public class PriMaterialsDO  {

    /**
     * 是否集购零件：0否，1是
     */
    public static final Integer IS_GROUP_ORDER_NO = 0,IS_GROUP_ORDER_YES = 1;

    //企业编号
    private String orgId;
    //零件编号
    private String materialsNo;
    //零件Id
    private String materialsId;
    //自定义零件编号
    private String customMaterialsNo;
    //零件名称
    private String materialsDes;
    //零件英文描述
    private String materialsDesEn;
    //配送类型
    private String deliveryType;
    //标准价格
    private BigDecimal standardPrice;
    //平价
    private BigDecimal parityPrice;
    //单价
    private BigDecimal price;
    //价格单位
    private String priceUnit;
    //采购类型
    private String purchaseType;
    //移动平均价
    private BigDecimal movingAveragePrice;
    //库存仓库
    private String stockLocation;
    //采购组
    private String purchaseGroup;
    //采购周期
    private String purchaseCycle;
    //进口件
    private Short entranceDevice;
    // 关键件
    private Short crucialDevice;

    private String materialsTypeId;
    //零件分类
    private String materialsType;

    //零件尺寸
    private String materialsMeasure;

    private Date createDate;

    private String createId;

    private Date updateDate;

    private String updateId;

    private Short deleted;
    private String unit;
    //导入时错误信息备注
    private String remark;
    private Integer errorRow;
    private Integer sap;
    private String productGroup;
    private String materialsGroup;
    private String materialsGroupDec;
    private String outMaterialsGroup;
    private String outMaterialsGroupDec;
    private String grade;
    private String gradeId;

    private BigDecimal safeAmount;

    //购买量
    private Integer isMinimumBuy;//是否设置最小购买量
    private Integer minimumBuy;//最小购买量

    //替换零件
    private String replaceMaterialsNo;//替换零件名称
    private String retrofitMaterialsNo;//改型零件名称
    private String replaceMaterialsNote;

    //是否直投（昆明）
    private Integer isDirectCast;
    //是否直投（合肥）
    private Integer isDirectCastHF;

    private BigDecimal maxAmount;

    private String ratio;

    /**
     * 是否辅料：0否，1是
     */
    private Integer isExcipients;

    /**
     * 是否集购零件
     */
    private Integer isGroupPur;

    /**
     * 备件所属机型
     */
    private String machineType;

    /**
     * 零件交货期。单位：月
     */
    private BigDecimal deliverySpend;
    /**
     * 代理商采购基准价
     */
    private BigDecimal agentPurchasePrice;

    //主机厂设置图片
    private String orgImageUrl;

    //代理商设置图片
    private String dealerImageUrl;

    private BigDecimal weight;

    private String weightUnit;

    //零件详情
    private String materialsDetail;
	    
    //是否关键件：0-否，1-是
    private Integer authDevice;
    
    //是否有效： 0-否， 1-是
    private Integer validFlag;

    //A/B件 A 保养件易损件 B维修件
    private String maintenanceType;

    //是自制件：0-否，1-是
    private Integer selfMade;

    //是基础机：0-否，1-是
    private Integer basicMachine;

    @ApiModelProperty(value = "自制件公司编码，是自制件时候设值")
    private String selfMadeCompanyCode;
    @ApiModelProperty(value = "自制件公司名称")
    private String selfMadeCompanyName;

    /**
     * 零件简号
     * 对应字段：MATERIALS_SHORT_NO
     */
    private String materialsShortNo;

    /**
     * 零件所属车型
     * 对应字段：MODEL_CODE
     */
    private String modelCode;

    /**
     * 工厂
     * 对应字段：ARR_FACTORY
     */
    private String arrFactory;

    @ApiModelProperty(value = "出货地", name = "factoryId")
    private String factoryId;

    @ApiModelProperty(value = "规格包装", name = "packStandard")
    private Integer packStandard;
    //订购包装
    @ApiModelProperty(value = "订购包装", name = "packQuantity")
    private Integer packQuantity;
    @ApiModelProperty(value = "最小订购量", name = "minnum")
    private BigDecimal minnum;
    //优先级
    @ApiModelProperty(value = "优先级", name = "prio")
    private String prio;
    @ApiModelProperty(value = "生效时间", name = "effStart")
    private Date effStart;

    public String getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId;
    }

    public Integer getPackStandard() {
        return packStandard;
    }

    public void setPackStandard(Integer packStandard) {
        this.packStandard = packStandard;
    }

    public Integer getPackQuantity() {
        return packQuantity;
    }

    public void setPackQuantity(Integer packQuantity) {
        this.packQuantity = packQuantity;
    }

    public BigDecimal getMinnum() {
        return minnum;
    }

    public void setMinnum(BigDecimal minnum) {
        this.minnum = minnum;
    }

    public String getPrio() {
        return prio;
    }

    public void setPrio(String prio) {
        this.prio = prio;
    }

    public Date getEffStart() {
        return effStart;
    }

    public void setEffStart(Date effStart) {
        this.effStart = effStart;
    }

    public String getSelfMadeCompanyCode() {
        return selfMadeCompanyCode;
    }

    public void setSelfMadeCompanyCode(String selfMadeCompanyCode) {
        this.selfMadeCompanyCode = selfMadeCompanyCode;
    }

    public String getSelfMadeCompanyName() {
        return selfMadeCompanyName;
    }

    public void setSelfMadeCompanyName(String selfMadeCompanyName) {
        this.selfMadeCompanyName = selfMadeCompanyName;
    }

    public String getMaintenanceType() {
        return maintenanceType;
    }

    public void setMaintenanceType(String maintenanceType) {
        this.maintenanceType = maintenanceType;
    }

    public String getMaterialsMeasure() {
        return materialsMeasure;
    }

    public void setMaterialsMeasure(String materialsMeasure) {
        this.materialsMeasure = materialsMeasure;
    }

    public String getMaterialsDesEn() {
        return materialsDesEn;
    }

    public void setMaterialsDesEn(String materialsDesEn) {
        this.materialsDesEn = materialsDesEn;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    public String getReplaceMaterialsNote() {
        return replaceMaterialsNote;
    }

    public void setReplaceMaterialsNote(String replaceMaterialsNote) {
        this.replaceMaterialsNote = replaceMaterialsNote;
    }

    public BigDecimal getDeliverySpend() {
        return deliverySpend;
    }

    public void setDeliverySpend(BigDecimal deliverySpend) {
        this.deliverySpend = deliverySpend;
    }

    public String getMachineType() {
        return machineType;
    }

    public void setMachineType(String machineType) {
        this.machineType = machineType;
    }

    public Integer getIsGroupPur() {
        return isGroupPur;
    }

    public void setIsGroupPur(Integer isGroupPur) {
        this.isGroupPur = isGroupPur;
    }
    private String supplierOrgId;

    private String supplierOrgName;

    public Integer getIsDirectCast() {
        return isDirectCast;
    }

    public void setIsDirectCast(Integer isDirectCast) {
        this.isDirectCast = isDirectCast;
    }

    public Integer getIsDirectCastHF() {
        return isDirectCastHF;
    }

    public void setIsDirectCastHF(Integer isDirectCastHF) {
        this.isDirectCastHF = isDirectCastHF;
    }

    public String getReplaceMaterialsNo() {
        return replaceMaterialsNo;
    }

    public void setReplaceMaterialsNo(String replaceMaterialsNo) {
        this.replaceMaterialsNo = replaceMaterialsNo;
    }

    public String getRetrofitMaterialsNo() {
        return retrofitMaterialsNo;
    }

    public void setRetrofitMaterialsNo(String retrofitMaterialsNo) {
        this.retrofitMaterialsNo = retrofitMaterialsNo;
    }

    public Integer getIsMinimumBuy() {
        return isMinimumBuy;
    }

    public void setIsMinimumBuy(Integer isMinimumBuy) {
        this.isMinimumBuy = isMinimumBuy;
    }

    public Integer getMinimumBuy() {
        return minimumBuy;
    }

    public void setMinimumBuy(Integer minimumBuy) {
        this.minimumBuy = minimumBuy;
    }

    public String getProductGroup() {
        return productGroup;
    }

    public void setProductGroup(String productGroup) {
        this.productGroup = productGroup;
    }

    public String getMaterialsGroup() {
        return materialsGroup;
    }

    public void setMaterialsGroup(String materialsGroup) {
        this.materialsGroup = materialsGroup;
    }

    public String getMaterialsGroupDec() {
        return materialsGroupDec;
    }

    public void setMaterialsGroupDec(String materialsGroupDec) {
        this.materialsGroupDec = materialsGroupDec;
    }

    public String getOutMaterialsGroup() {
        return outMaterialsGroup;
    }

    public void setOutMaterialsGroup(String outMaterialsGroup) {
        this.outMaterialsGroup = outMaterialsGroup;
    }

    public String getOutMaterialsGroupDec() {
        return outMaterialsGroupDec;
    }

    public void setOutMaterialsGroupDec(String outMaterialsGroupDec) {
        this.outMaterialsGroupDec = outMaterialsGroupDec;
    }

    public Integer getSap() {
        return sap;
    }

    public void setSap(Integer sap) {
        this.sap = sap;
    }

    public Integer getErrorRow() {
        return errorRow;
    }

    public void setErrorRow(Integer errorRow) {
        this.errorRow = errorRow;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMaterialsNo() {
        return materialsNo;
    }

    public void setMaterialsNo(String materialsNo) {
        this.materialsNo = materialsNo;
    }

    public String getMaterialsId() {
        return materialsId;
    }

    public void setMaterialsId(String materialsId) {
        this.materialsId = materialsId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }


    public BigDecimal getStandardPrice() {
        return standardPrice;
    }

    public void setStandardPrice(BigDecimal standardPrice) {
        this.standardPrice = standardPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getMovingAveragePrice() {
        return movingAveragePrice;
    }

    public void setMovingAveragePrice(BigDecimal movingAveragePrice) {
        this.movingAveragePrice = movingAveragePrice;
    }

    public String getMaterialsDes() {
        return materialsDes;
    }

    public void setMaterialsDes(String materialsDes) {
        this.materialsDes = materialsDes == null ? null : materialsDes.trim();
    }

    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType == null ? null : deliveryType.trim();
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit == null ? null : priceUnit.trim();
    }

    public String getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(String purchaseType) {
        this.purchaseType = purchaseType == null ? null : purchaseType.trim();
    }

    public String getStockLocation() {
        return stockLocation;
    }

    public void setStockLocation(String stockLocation) {
        this.stockLocation = stockLocation == null ? null : stockLocation.trim();
    }

    public String getPurchaseGroup() {
        return purchaseGroup;
    }

    public void setPurchaseGroup(String purchaseGroup) {
        this.purchaseGroup = purchaseGroup == null ? null : purchaseGroup.trim();
    }

    public String getPurchaseCycle() {
        return purchaseCycle;
    }

    public void setPurchaseCycle(String purchaseCycle) {
        this.purchaseCycle = purchaseCycle == null ? null : purchaseCycle.trim();
    }

    public Short getEntranceDevice() {
        return entranceDevice;
    }

    public void setEntranceDevice(Short entranceDevice) {
        this.entranceDevice = entranceDevice;
    }

    public Short getCrucialDevice() {
        return crucialDevice;
    }

    public void setCrucialDevice(Short crucialDevice) {
        this.crucialDevice = crucialDevice;
    }

    public String getMaterialsTypeId() {
        return materialsTypeId;
    }

    public void setMaterialsTypeId(String materialsTypeId) {
        this.materialsTypeId = materialsTypeId;
    }

    public String getMaterialsType() {
        return materialsType;
    }

    public void setMaterialsType(String materialsType) {
        this.materialsType = materialsType == null ? null : materialsType.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public Short getDeleted() {
        return deleted;
    }

    public void setDeleted(Short deleted) {
        this.deleted = deleted;
    }


    public String getCustomMaterialsNo() {
        return customMaterialsNo;
    }

    public void setCustomMaterialsNo(String customMaterialsNo) {
        this.customMaterialsNo = customMaterialsNo;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGradeId() {
        return gradeId;
    }

    public void setGradeId(String gradeId) {
        this.gradeId = gradeId;
    }

    public BigDecimal getSafeAmount() {
        return safeAmount;
    }

    public void setSafeAmount(BigDecimal safeAmount) {
        this.safeAmount = safeAmount;
    }

    public BigDecimal getMaxAmount() {
        return maxAmount;
    }

    public void setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
    }

    public String getRatio() {
        return ratio;
    }

    public void setRatio(String ratio) {
        this.ratio = ratio;
    }

    public Integer getIsExcipients() {
        return isExcipients;
    }

    public void setIsExcipients(Integer isExcipients) {
        this.isExcipients = isExcipients;
    }

    public String getSupplierOrgId() {
        return supplierOrgId;
    }

    public void setSupplierOrgId(String supplierOrgId) {
        this.supplierOrgId = supplierOrgId;
    }

    public String getSupplierOrgName() {
        return supplierOrgName;
    }

    public void setSupplierOrgName(String supplierOrgName) {
        this.supplierOrgName = supplierOrgName;
    }

    public BigDecimal getAgentPurchasePrice() {
        return agentPurchasePrice;
    }

    public void setAgentPurchasePrice(BigDecimal agentPurchasePrice) {
        this.agentPurchasePrice = agentPurchasePrice;
    }

    public String getOrgImageUrl() {
        return orgImageUrl;
    }

    public void setOrgImageUrl(String orgImageUrl) {
        this.orgImageUrl = orgImageUrl;
    }

    public String getDealerImageUrl() {
        return dealerImageUrl;
    }

    public void setDealerImageUrl(String dealerImageUrl) {
        this.dealerImageUrl = dealerImageUrl;
    }

    public String getMaterialsDetail() {
        return materialsDetail;
    }

    public void setMaterialsDetail(String materialsDetail) {
        this.materialsDetail = materialsDetail;
    }

	public Integer getAuthDevice() {
		return authDevice;
	}

	public void setAuthDevice(Integer authDevice) {
		this.authDevice = authDevice;
	}

	public Integer getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(Integer validFlag) {
		this.validFlag = validFlag;
	}

	public BigDecimal getParityPrice() {
		return parityPrice;
	}

	public void setParityPrice(BigDecimal parityPrice) {
		this.parityPrice = parityPrice;
	}

    public Integer getSelfMade() {
        return selfMade;
    }

    public void setSelfMade(Integer selfMade) {
        this.selfMade = selfMade;
    }

    public Integer getBasicMachine() {
        return basicMachine;
    }

    public void setBasicMachine(Integer basicMachine) {
        this.basicMachine = basicMachine;
    }

    public String getMaterialsShortNo() {
        return materialsShortNo;
    }

    public void setMaterialsShortNo(String materialsShortNo) {
        this.materialsShortNo = materialsShortNo;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getArrFactory() {
        return arrFactory;
    }

    public void setArrFactory(String arrFactory) {
        this.arrFactory = arrFactory;
    }


}